package com.demo.zhihu.model;

import java.util.List;
import org.apache.ibatis.type.Alias;

@Alias("Profile")
public class UserProfile extends User {
    private int page;
    private List<Question> myQuestions;
    private List<Answer> myAnswers;
    public UserProfile() {}

    public UserProfile(int id, int page) {
        this.setId(id);
        this.page = page;
    }

    public List<Question> getMyQuestions() {
        return myQuestions;
    }

    public void setMyQuestions(List<Question> myQuestions) {
        
        this.myQuestions = myQuestions;
    }

    public List<Answer> getMyAnswers() {
        return myAnswers;
    }

    public void setMyAnswers(List<Answer> myAnswers) {
        this.myAnswers = myAnswers;
    }

    public int getOffset() {
        return (page-1) * 1;
    }
}
